package jwr.basic;

import java.util.Scanner;

public class Ex62 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int nums[] = new int[3];
		
		System.out.print("세개의 숫자를 입력하세요 : ");
		for(int i = 0; i < 3;i++){
			nums[i] = sc.nextInt();
		}
		System.out.println();
		System.out.print("정방향으로 출력");
		
		for(int i = 0;i<3 ; i++){
			System.out.print(nums[i] + " ");
		}
		System.out.println();
		System.out.print("역방향으로 출력");
		
		for(int i = 2;i>=0;i--){
			System.out.print(nums[i] + " ");
		}
	}

}
